﻿<model:FormInstance 
    xmlns:model="clr-namespace:WPForms.Common.Model;assembly=WPForms.Common"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    ServerUrl="http://localhost:51583/FormStore.svc"
    Name="SampleForm">
    <model:FormInstance.MainSection>
        <model:FormSection Name="Registration form">
            <model:FormSection.Children>
                <model:TextField Label="First name:" IsRequired="True"/>
                <model:TextField Label="Last name:" IsRequired="True"/>
                <model:NumberField Label="Age:" IsRequired="False"/>
                <model:DateTimeField Label="Date of birth:" IsRequired="False"/>
                <model:GeoLocation Label="Address:" IsRequired="True"/>
                <model:PictureAttachment Label="Portrait:" IsRequired="True"/>
                <model:FormSection Name="Shipping information">
                    <model:FormSection.Children>
                        <model:TextField Label="Bill to:"/>
                        <model:GeoLocation Label="Delivery address:"/>
                        <model:DateTimeField Label="Preferred day:"/>
                    </model:FormSection.Children>
                </model:FormSection>
            </model:FormSection.Children>
        </model:FormSection>
    </model:FormInstance.MainSection>
</model:FormInstance>   